-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JAVA_API][GSOC] Add Java API bindings #709
Merged
ilya-lavrenov
merged 20 commits into
openvinotoolkit:master
from
rajatkrishna:ov-java-api
Dec 12, 2023
Merged
[JAVA_API][GSOC] Add Java API bindings #709
ilya-lavrenov
merged 20 commits into
openvinotoolkit:master
from
rajatkrishna:ov-java-api
Dec 12, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add sample output for hello query device
likholat
reviewed
Sep 5, 2023
likholat
reviewed
Sep 5, 2023
likholat
reviewed
Sep 5, 2023
Co-authored-by: Anna Likholat <[email protected]>
@rajatkrishna please run google-java-format locally before commit:
|
@ilya-lavrenov could you merge this PR? |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Details
This PR adds JNI wrappers to the OpenVINO Java API and includes a
hello_query_device
sample that demonstrates the usage of the Query Device API feature to print device configuration and default config values.Below is a list of JNI wrappers added:
Read and compile a model directly from the model path
Compile an ov.Model with the given properties
List devices available for inference
Extract data from ov.Any type
List the input and output tensor information of a CompiledModel. Returns the tensor shape, name and element type of each input/output tensor.
Set input/output tensors to infer on by tensor name when the model has multiple input/output tensors
Create integer tensors and extract data as an int array
Create Long tensors
Save model into IR format from memory